package com.kalvin.kvf.modules.hxy.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import com.kalvin.kvf.modules.hxy.entity.Cookies;
import com.kalvin.kvf.modules.hxy.mapper.CookiesMapper;

import java.util.List;

/**
 * <p>
 * cookies 服务实现类
 * </p>
 * @since 2023-11-23 16:58:16
 */
@Service
public class CookiesServiceImpl extends ServiceImpl<CookiesMapper, Cookies> implements CookiesService {

    @Override
    public Page<Cookies> listCookiesPage(Cookies cookies) {
        Page<Cookies> page = new Page<>(cookies.getCurrent(), cookies.getSize());
        List<Cookies> cookiess = baseMapper.selectCookiesList(cookies, page);
        return page.setRecords(cookiess);
    }

}
